/*
 * based off of https://github.com/gitterHQ/sidecar
 * license: MIT
 */
.drawer {
    width:500px;

    z-index: 20000;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;

    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    background-color: @body-bg;
    border-left: 1px solid #ddd;
    box-shadow: -12px 0 18px 0 rgba(50, 50, 50, 0.1);

    transition: transform 0.3s cubic-bezier(0.16, 0.22, 0.22, 1.7);

    &.is-collapsed:not(.is-loading) {
      -webkit-transform: translateX(110%);
      transform: translateX(110%);
    }

    /* Add some "extension" so that there isn't a gap
     * when we translate(via animation) more than 100% */
    &:after {
      content: '';

      z-index: -1;
      position: absolute;
      top: 0;
      left: 100%;
      bottom: 0;
      right: -100%;

      background-color: @body-bg;
    }
    iframe {
      width: 100%;
      height: 100%;
    }

    h2 > a {
      font-size: 20px;
    }
    a > h3 {
      font-size: 18px;
      font-weight: bold;
    }
    p {
      font-size: 16px;
      margin-left: 32px !important;
    }
    > .challenge-block-time {
      width: 100%;
      padding-top: 5px;
    }
}

.drawer-content {
    overflow-y: auto;
}

.drawer-action-bar {
    position: absolute;
    top: 0;
    right: 0;

    display: -webkit-flex;
    display: flex;
    justify-content: flex-end;

    padding-bottom: 5px;
    padding-right:10px;
    padding-top:5px;
    z-index: 100;
}

.drawer-action-item {
    display: -webkit-flex;
    display: flex;
    /* main axis */
    justify-content: center;
    /* cross axis */
    align-items: center;

    width: 40px;
    height: 40px;

    padding-left: 0;
    padding-right: 0;

    opacity: 0.65;
    background: none;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 22px 22px;
    border: 0;
    outline: none;

    cursor: pointer;
    cursor: hand;

    transition: all 0.2s ease;

    &:hover,
    &:focus {
      opacity: 1;
    }

    &:active {
      filter: hue-rotate(80deg) saturate(150);
    }
}

.drawer-action-pop-out {
    margin-right: -4px;
    background-image: url()
}

.drawer-action-collapse {
    background-image: url()
}

.night {
  .drawer {
    background-color: @night-body-bg;
  }
  .drawer-action-item{
    filter: brightness(4) saturate(0);
    -webkit-filter: brightness(4) saturate(0);
  }
}
